/*
 * To change this template, choose Tools | Templates
 * and open the template in the editor.
 */

package isd.facturacion.modelo;

import java.io.Serializable;
import javax.persistence.Embeddable;

/**
 *
 * @author ctrosch
 */
@Embeddable
public class FC_ItemMovimientoPK implements Serializable {
    
    
    private String modfor;
    private String codfor;
    private int nrofor;
    private int nroitm;
    private String nivexp;
    private String modapl;
    private String codapl;
    private int nroapl;
    private int itmapl;
    private String expapl;

    public FC_ItemMovimientoPK() {
    }

    public FC_ItemMovimientoPK(String modfor, String codfor, int nrofor, int nroitm, String nivexp, String modapl, String codapl, int nroapl, int itmapl, String expapl) {
        this.modfor = modfor;
        this.codfor = codfor;
        this.nrofor = nrofor;
        this.nroitm = nroitm;
        this.nivexp = nivexp;
        this.modapl = modapl;
        this.codapl = codapl;
        this.nroapl = nroapl;
        this.itmapl = itmapl;
        this.expapl = expapl;
    }

    public String getCodapl() {
        return codapl;
    }

    public void setCodapl(String codapl) {
        this.codapl = codapl;
    }

    public String getCodfor() {
        return codfor;
    }

    public void setCodfor(String codfor) {
        this.codfor = codfor;
    }

    public String getExpapl() {
        return expapl;
    }

    public void setExpapl(String expapl) {
        this.expapl = expapl;
    }

    public int getItmapl() {
        return itmapl;
    }

    public void setItmapl(int itmapl) {
        this.itmapl = itmapl;
    }

    public String getModapl() {
        return modapl;
    }

    public void setModapl(String modapl) {
        this.modapl = modapl;
    }

    public String getModfor() {
        return modfor;
    }

    public void setModfor(String modfor) {
        this.modfor = modfor;
    }

    public String getNivexp() {
        return nivexp;
    }

    public void setNivexp(String nivexp) {
        this.nivexp = nivexp;
    }

    public int getNroapl() {
        return nroapl;
    }

    public void setNroapl(int nroapl) {
        this.nroapl = nroapl;
    }

    public int getNrofor() {
        return nrofor;
    }

    public void setNrofor(int nrofor) {
        this.nrofor = nrofor;
    }

    public int getNroitm() {
        return nroitm;
    }

    public void setNroitm(int nroitm) {
        this.nroitm = nroitm;
    }

    @Override
    public int hashCode() {
        int hash = 0;
        hash += (modfor != null ? modfor.hashCode() : 0);
        hash += (codfor != null ? codfor.hashCode() : 0);
        hash += (int) nrofor;
        hash += (int) nroitm;
        hash += (nivexp != null ? nivexp.hashCode() : 0);
        hash += (modapl != null ? modapl.hashCode() : 0);
        hash += (codapl != null ? codapl.hashCode() : 0);
        hash += (int) nroapl;
        hash += (int) itmapl;
        hash += (expapl != null ? expapl.hashCode() : 0);
        return hash;
    }

    @Override
    public boolean equals(Object object) {
        // TODO: Warning - this method won't work in the case the id fields are not set
        if (!(object instanceof FC_ItemMovimientoPK)) {
            return false;
        }
        FC_ItemMovimientoPK other = (FC_ItemMovimientoPK) object;
        if ((this.modfor == null && other.modfor != null) || (this.modfor != null && !this.modfor.equals(other.modfor))) {
            return false;
        }
        if ((this.codfor == null && other.codfor != null) || (this.codfor != null && !this.codfor.equals(other.codfor))) {
            return false;
        }
        if (this.nrofor != other.nrofor) {
            return false;
        }
        if (this.nroitm != other.nroitm) {
            return false;
        }
        if ((this.nivexp == null && other.nivexp != null) || (this.nivexp != null && !this.nivexp.equals(other.nivexp))) {
            return false;
        }
        if ((this.modapl == null && other.modapl != null) || (this.modapl != null && !this.modapl.equals(other.modapl))) {
            return false;
        }
        if ((this.codapl == null && other.codapl != null) || (this.codapl != null && !this.codapl.equals(other.codapl))) {
            return false;
        }
        if (this.nroapl != other.nroapl) {
            return false;
        }
        if (this.itmapl != other.itmapl) {
            return false;
        }
        if ((this.expapl == null && other.expapl != null) || (this.expapl != null && !this.expapl.equals(other.expapl))) {
            return false;
        }
        return true;
    }

    @Override
    public String toString() {
        return "tv.venta.modelo.ItemMovimientoVentaPK[fcrmviModfor=" + modfor + ", fcrmviCodfor=" + codfor + ", fcrmviNrofor=" + nrofor + ", fcrmviNroitm=" + nroitm + ", fcrmviNivexp=" + nivexp + ", fcrmviModapl=" + modapl + ", fcrmviCodapl=" + codapl + ", fcrmviNroapl=" + nroapl + ", fcrmviItmapl=" + itmapl + ", fcrmviExpapl=" + expapl + "]";
    }

}
